<template>
<section class="section_wrap">
    <div class="section_main">
        <div class="col_main ">
            <div class="mod_main_header">
                <div class="live_info">
                    <i class="el-icon-video-camera-solid"></i>
                    <h2>联想集团副总裁田日辉做客人民日报《问道》：新基建，推动企业转型升级 直播 2020-05-14</h2>
                </div>
                <div class="live_uinfo">
                    <span class="nickname">游客</span>
                </div>
            </div>
            <div class="mod_main_player_wp">
                <div class="mod_ppt_main_player">
                    <!--视频播放和ppt播放区域-->
                </div>
            </div>
            <!-- <div class="carousel right"><i class="el-icon-arrow-right"></i></div> -->
        </div>
    </div>
    <div class="col_right_side ">
        <div class="camera_play">
            <div id="mod_camera_player">
                <img src="https://gucp.lenovo.com/attach/2020/05/25/20de123c-359a-48e3-9956-6bb56e7eb71f-8c8e0ede49bdbf8432abb872d764500e.png" alt="">
            </div>
        </div>
        <div class="tab_change">
            <ul id="chat_nav">
                <li @click="tabClick('chat')" class="tab_n1  two" :class="{'current':currentTab=='chat'}"><span class="chat">聊天</span> </li>
                <li @click="tabClick('people')" class="tab_n2 two" :class="{'current':currentTab=='people'}"><span>人数(10)</span></li>
            </ul>
        </div>
        <div class="mod_chat_list " v-if="currentTab=='chat'">
            <div class="list_chat">
                <ul id="chat_listli">
                    <li class="chat_at_28 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="游客30860971" class="use_names">游客30860971</span>
                            <span class="time">00:28</span>
                        </div>

                        <p>好</p>
                    </li>
                    <li class="chat_at_28 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="游客30860971" class="use_names">游客30860971</span>
                            <span class="time">00:28</span>
                        </div>

                        <p>好</p>
                    </li>
                    <li class="chat_at_28 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="游客30860971" class="use_names">游客30860971</span>
                            <span class="time">00:28</span>
                        </div>

                        <p>好</p>
                    </li>
                    <li class="chat_at_28 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="游客30860971" class="use_names">游客30860971</span>
                            <span class="time">00:28</span>
                        </div>

                        <p>好</p>
                    </li>
                    <li class="chat_at_28 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="游客30860971" class="use_names">游客30860971</span>
                            <span class="time">00:28</span>
                        </div>

                        <p>好</p>
                    </li>
                    <li class="chat_at_28 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="游客30860971" class="use_names">游客30860971</span>
                            <span class="time">00:28</span>
                        </div>

                        <p>好</p>
                    </li>
                    <li class="chat_at_28 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="游客30860971" class="use_names">游客30860971</span>
                            <span class="time">00:28</span>
                        </div>

                        <p>好</p>
                    </li>
                    <li class="chat_at_42 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="广东广州" class="use_names">广东广州</span>
                            <span class="time">00:42</span>
                        </div>

                        <p>王老师晚上好！</p>
                    </li>
                    <li class="chat_at_82 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="王静" class="use_names">王静</span>
                            <span class="time">01:22</span>
                        </div>

                        <p>老师好</p>
                    </li>
                    <li class="chat_at_166 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="王静" class="use_names">王静</span>
                            <span class="time">02:46</span>
                        </div>

                        <p>送给老师：<img src="https://static-1.talk-fun.com/open/maituo/static/css/img/rose_ico0.png"><img src="https://static-1.talk-fun.com/open/maituo/static/css/img/rose_ico0.png"><img src="https://static-1.talk-fun.com/open/maituo/static/css/img/rose_ico0.png"></p>
                    </li>
                    <li class="chat_at_183 message_">
                        <div class="chat_hd">

                            <a class="avatar" href="javascript:;" title="微吼直播学院">
                                <img src="//cnstatic01.e.vhall.com/upload/user/avatar/da/ed/daed7ef4e343d43d221668a13228b74c.jpg?x-oss-process=image/resize,w_100,h_100" width="32" height="32" onerror="this.src='//cnstatic01.e.vhall.com/static/images/watch/head50.png'"></a>

                            <span title="吴小莉" class="use_names">吴小莉</span>
                            <span class="time">03:03</span>
                        </div>

                        <p>好久开始学习</p>
                    </li>

                </ul>
                <div class="chat_operation ">
                    <div class="left-flower">
                        <img src="https://static-1.talk-fun.com/open/maituo/static/css/img/rose_ico0.png">
                        <img src="http://cnstatic01.e.vhall.com/upload/gifts/27/18/27183f4abcc7f33af6616bd0b84c9f14.png" alt="">
                        <img src="http://cnstatic01.e.vhall.com/upload/gifts/be/3c/be3c4f56f551158eead7cc55b71183a2.png" alt="">

                    </div>
                    <div class="clearfix text-box">
                        <textarea id="mywords" placeholder="说点什么吧" onkeypress="if(event.keyCode == 13 &amp;&amp; !event.shiftKey){document.getElementById('jssend').click();return false;}return true;" maxlength="140"></textarea>
                        <a id="jssend" class="send" href="javascript:;" send-type="1">发送</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="stusLists" v-else>
            <div class="stusLists_content">
                <ul>
                    <li>
                        <p :style="{'backgroundImage':`url('http://image.yunduoketang.com/headpic/112537/20200604/4902526f-aaa7-46bb-8137-d5ce36e5c6df.png')`}"></p>
                        <span class="clamatN">周少静</span>
                    </li>
                    <li>
                        <p :style="{'backgroundImage':`url('http://image.yunduoketang.com/headpic/112537/20200604/4902526f-aaa7-46bb-8137-d5ce36e5c6df.png')`}"></p>
                        <span class="clamatN">周少静</span>
                    </li>
                    <li>
                        <p :style="{'backgroundImage':`url('http://image.yunduoketang.com/headpic/112537/20200604/4902526f-aaa7-46bb-8137-d5ce36e5c6df.png')`}"></p>
                        <span class="clamatN">周少静</span>
                    </li>
                    <li>
                        <p :style="{'backgroundImage':`url('http://image.yunduoketang.com/headpic/112537/20200604/4902526f-aaa7-46bb-8137-d5ce36e5c6df.png')`}"></p>
                        <span class="clamatN">周少静</span>
                    </li>
                    <li>
                        <p :style="{'backgroundImage':`url('http://image.yunduoketang.com/headpic/112537/20200604/4902526f-aaa7-46bb-8137-d5ce36e5c6df.png')`}"></p>
                        <span class="clamatN">周少静</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="section_footer">
        <div class="mod_footer">
            <div class="footer_btn">
                <div class="footer_left"></div>
                <div class="footer_right">
                    <a>
                        <img src="http://cnstatic01.e.vhall.com/static/images/watch/rewardpay-3.1.4.png?v=8GZuLqO%2Fnj%2B99JJ5ToDDkg%3D%3D">
                        <img src="http://cnstatic01.e.vhall.com/static/images/watch/gift-icon-3.1.4.png?v=gTP4La5DJ66yXelZpp9QTg%3D%3D">

                    </a>

                </div>
            </div>
        </div>
    </div>
</section>
</template>

<script>
export default {
    data() {
        return {
            currentTab: 'chat'
        }
    },
    methods: {
        tabClick(item) {
            this.currentTab = item;
        }
    }
}
</script>

<style lang="scss" scoped>
.section_wrap {
    overflow: hidden;

    .section_main {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #222;

        .col_main {
            .mod_main_header {
                position: absolute;
                left: 0;
                right: 290px;
                width: auto;
                height: 44px;
                overflow: hidden;
                background: #222;

                .live_info {
                    float: left;

                    i {
                        color: #fff;
                        width: 21px;
                        height: 17px;
                        font-size: 24px;
                        float: left;
                        margin-top: 10px;
                    }

                    h2 {
                        height: 44px;
                        overflow: hidden;
                        font-size: 16px;
                        line-height: 44px;
                        float: left;
                        color: #fff;
                        padding-left: 10px;
                    }
                }

                .live_uinfo {
                    float: right;
                    height: 44px;
                    line-height: 44px;
                    margin-right: 32px;
                    overflow: hidden;

                    .nickname {
                        color: #3c3c3c;
                        font-size: 14px;
                        float: left;
                    }
                }
            }

            .mod_main_player_wp {
                z-index: 20;
                width: auto;
                height: auto;
                background-color: #fff;
                -moz-box-shadow: 0 0 8px #c5c5c5;
                -webkit-box-shadow: 0 0 8px #c5c5c5;
                box-shadow: 0 0 8px #c5c5c5;
                position: absolute;
                left: 0;
                right: 290px;
                top: 44px;
                bottom: 63px;

                .mod_ppt_main_player {
                    position: absolute;
                    left: 0;
                    top: 0;
                    bottom: 50px;
                    width: 100%;
                    height: 100%;
                    overflow: hidden;
                }
            }

            .carousel {
                position: absolute;
                top: 0;
                width: 10px;
                height: 100%;
                cursor: pointer;
                background: #e5e5e5;

                &.right {
                    right: 280px;

                    i {
                        width: 10px;
                        height: 100px;
                        display: block;
                        position: absolute;
                        top: 50%;
                        margin-top: -50px;
                    }
                }
            }
        }
    }

    .col_right_side {
        position: absolute;
        width: 280px;
        height: 100%;
        right: 0;
        top: 0;
        background: #282830;

        .camera_play {
            width: 280px;
            height: 210px;
            overflow: hidden;
            position: absolute;
            left: 0;
            top: 0;
            box-shadow: 0 0 8px #c5c5c5;
            .camera_play #mod_camera_player {
    position: relative;
    width: 100%;
    height: 100%;
}
        }

        .tab_change {
            height: 40px;
            overflow: hidden;
            float: left;
            position: absolute;
            top:210px;
            width: 280px;
            border-top: 1px solid #f2f7f6;

            ul {
                width: 100%;
                height: 36px;
                float: left;

                .two {
                    width: 48%;
                }

                .current {
                    background: #2d2d2d;
                    border-bottom: 2px solid #f33;
                    color: #f33;
                }

                li {
                    list-style: none;
                    color: #7f7f82;
                    float: left;
                    height: 36px;
                    line-height: 36px;
                    font-size: 14px;
                    text-align: center;
                    background: #2d2d2d;
                    cursor: pointer;
                    position: relative;

                    &.tab_n1 {
                        border: 0;
                    }

                    &.current,
                    &:hover {
                        background: #2d2d2d;
                        border-bottom: 2px solid #f33;
                        color: #f33;
                    }
                }
            }
        }

        .mod_chat_list {
            width: 280px;
            position: absolute;
            top: 251px;
            bottom: 85px;
            float: left;
            overflow-y: auto;
            overflow-x: hidden;

            .list_chat {
                width: 100%;
                height: auto;
                float: left;

                ul {
                    width: 100%;

                    li {
                        list-style: none;
                        height: auto;
                        margin: 1px 0;
                        padding: 0 15px 0;

                        p {
                            margin: 3px 0 15px 35px;
                            font-size: 14px;
                            color: #bcbcbc;
                            line-height: 18px;
                            word-break: break-all;
                        }

                        .chat_hd {
                            width: 100%;
                            height: 28px;
                            padding: 5px 0;

                            .avatar {
                                display: inline-block;
                                border-radius: 50%;
                                overflow: hidden;
                                line-height: 0;
                                border: 1px solid #999;
                                float: left;
                            }

                            span {
                                font-size: 12px;

                                &.use_names {
                                    color: #6f6e6e;
                                    float: left;
                                    min-width: 146px;
                                    max-width: 146px;
                                    white-space: nowrap;
                                    height: 28px;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    line-height: 28px;
                                    padding: 0 4px;
                                }

                                &.time {
                                    color: #bdbdbd;
                                    float: left;
                                    line-height: 28px;
                                }
                            }
                        }
                    }
                }

                .chat_operation {
                    position: fixed;
                    width: 280px;
                    bottom: 0px;
                    right: 0;
                    overflow: hidden;

                    .left-flower {
                        box-sizing: border-box;
                        padding: 10.5px 0 9.5px;

                        img {
                            display: inline-block;
                            width: 20px;
                            height: 20px;
                            cursor: pointer;
                        }

                    }

                    .text-box {
                        margin-bottom: 10px;
                        text-align: left;
                        height: 32px;

                        textarea {
                            border: none;
                            background: #545454;
                            height: 32px;
                            width: 224px;
                            max-width: 81.75%;
                            resize: none;
                            padding: 0 9px;
                            line-height: 32px;
                            color: #fff;
                            overflow: auto;
                            border-radius: 4px 0 0 4px;
                            box-sizing: border-box;
                            font-size: 12px;
                            outline: none;
                            float: left;
                        }

                        .send {
                            box-sizing: border-box;
                            width: 50px;
                            max-width: 18.25%;
                            height: 32px;
                            line-height: 32px;
                            text-align: center;
                            background: #999;
                            cursor: pointer;
                            color: #fff;
                            float: left;
                            border-radius: 0 4px 4px 0;
                            font-size: 12px;
                        }
                    }
                }
            }
        }

        .stusLists {
            width: 280px;
            position: absolute;
            top: 251px;
            bottom: 54px;
            float: left;
            overflow-y: auto;
            overflow-x: hidden;

            .stusLists_content {
                width: 100%;
                height: auto;
                float: left;

                ul {
                    width: 100%;

                    li {
                        width: 20%;

                        overflow: hidden;
                        float: left;
                        margin: 12px 10px 12px 0;
                        height: 80px;
                        border-radius: 0;
                        text-align: center;
                        background: #282830;

                        p {
                            width: 54px;
                            height: 54px;
                            border-radius: 50%;
                            //background: url(../../images/stu.png) no-repeat center;
                            background-size: 100% auto;
                        }

                        .clamatN {
                            font-size: 12px;
                            color: #787d82;
                            padding-top: 8px;
                            display: inline-block;
                            width: 100%;
                            text-overflow: ellipsis;
                            overflow: hidden;
                            white-space: nowrap;
                        }

                    }
                }

            }
        }
    }

    .section_footer {
        width: auto;
        height: 58px;
        bottom: 0;
        position: absolute;
        z-index: 200;
        left: 290px;
        right: 290px;

        .mod_footer {
            bottom: 0;
            height: 47px;

            .footer_btn {
                width: 100%;
                height: 44px;
                margin: 8px 0 0;

                .footer_left {
                    height: 40px;
                    width: 190px;
                    margin-left: 60px;
                    float: left;
                }

                .footer_right {
                    position: relative;
                    height: 40px;
                    float: right;
                    width: 241px;

                    a {
                        cursor: pointer;
                        color: #adacac;
                        margin-top: 8px;
                        line-height: 30px;

                        img {
                            width: 30px;
                            height: 30px;
                        }
                    }
                }
            }
        }
    }
}
</style>
